<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="from" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<html style="
background-image: URL('/static/images/login_bg.jpg');
background-position: center;
background-repeat: no-repeat;
background-attachment: fixed;
">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="shortcut icon" href="${contextPath}/static/images/favicon.png" type="image/png">
    <c:set var="name" value="${fromDto.name}" scope="application"/>
    <title>登录</title>

    <link href="${contextPath}/static/css/style.default.css" rel="stylesheet">

    <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
    <script src="${contextPath}/static/js/html5shiv.js"></script>
    <script src="${contextPath}/static/js/respond.min.js"></script>
    <script type="text/javascript">
        window.location.href = "http://windows.microsoft.com/zh-cn/internet-explorer/ie-11-worldwide-languages";
    </script>
    <![endif]-->
</head>
<style>
    .error {
        color: red;
    }

</style>
<body class="signin" style="background:none;">
<section style="background:none;">
    <div class="signinpanel">
        <div class="row">
            <div class="col-md-7">
                <div class="signin-info">
                    <div class="logopanel">
                        <h1><span>[</span> 美凯佳宝 <span>]</span></h1>
                    </div>
                    <!-- logopanel -->

                    <div class="mb20"></div>

                    <h5><strong>美凯佳宝后台登录界面</strong></h5>
                    <ul>
                        <%--<li><i class="fa fa-arrow-circle-o-right mr5"></i> Fully Responsive Layout</li>--%>
                    </ul>
                    <div class="mb20"></div>
                    <%--<strong>没有账号? <a href="#">联系管理员开通</a></strong>--%>
                </div>
                <!-- signin0-info -->
            </div>
            <!-- col-sm-7 -->
            <div class="col-md-5">
                <form:form action="${contextPath}/login" method="post" commandName="user" style="background:#fff;">
                    <h4 class="nomargin">登录</h4>
                    <span class="error">${message}</span>
                    <from:input type="text" name="username" class="form-control uname" placeholder="请输入账号"
                                path="username"/>
                    <form:errors path="username" cssClass="error"/>
                    <from:input type="password" name="password" class="form-control pword" placeholder="请输入密码"
                                path="password"/>
                    <form:errors path="password" cssClass="error"/>
                    <from:button name="button" class="btn btn-success btn-block">登录</from:button>
                </form:form>
            </div>
            <!-- col-sm-5 -->
        </div>
        <!-- row -->

        <%--<div class="signup-footer">--%>
        <%--<div class="pull-left">--%>
        <%--&copy; 2016. All Rights Reserved.--%>
        <%--</div>--%>
        <%--</div>--%>

    </div>
    <!-- signin -->
</section>

<script src="${contextPath}/static/js/jquery-1.11.1.min.js"></script>
<script src="${contextPath}/static/js/jquery-migrate-1.2.1.min.js"></script>
<script src="${contextPath}/static/js/bootstrap.min.js"></script>
<script src="${contextPath}/static/js/modernizr.min.js"></script>
<script src="${contextPath}/static/js/jquery.sparkline.min.js"></script>
<script src="${contextPath}/static/js/jquery.cookies.js"></script>

<script src="${contextPath}/static/js/toggles.min.js"></script>
<script src="${contextPath}/static/js/retina.min.js"></script>

<script src="${contextPath}/static/js/custom.js"></script>
<script>
    jQuery(document).ready(function () {
        var c = jQuery.cookie('change-skin');
        if (c && c == 'greyjoy') {
            jQuery('.btn-success').addClass('btn-orange').removeClass('btn-success');
        } else if (c && c == 'dodgerblue') {
            jQuery('.btn-success').addClass('btn-primary').removeClass('btn-success');
        } else if (c && c == 'katniss') {
            jQuery('.btn-success').addClass('btn-primary').removeClass('btn-success');
        }
    });
</script>
<img class="hide" src="${contextPath}/admin/index.htm"/>
</body>
</html>
